package com.ushio.capsuleservice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 通知实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tc_notification")
public class Notification {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("type")
    private Integer type; // 1-系统通知，2-回复通知，3-点赞通知
    
    @TableField("title")
    private String title;
    
    @TableField("content")
    private String content;
    
    @TableField("is_read")
    private Integer isRead = 0; // 1-已读，0-未读
    
    @TableField("related_id")
    private Long relatedId;
    
    @TableField("created_time")
    private LocalDateTime createdTime;
}
